package com.syni.mdd.sjb.common.component.utils.feign.service.mddDistSys;

import com.syni.mdd.sjb.common.component.utils.feign.dto.mddDistSys.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


@FeignClient(value = "mdd-dist-sys",path = "/distSys")
@RequestMapping("/fxCenter")
public interface FxCenterService {

    //对应要调用的client-user微服务控制层请求方法
    @GetMapping("/getFxRole")
    Integer getFxRole(@RequestParam("userId") Integer userId);

    @PostMapping("/orderSubmit")
    Map<String, Object> orderSubmit(OrderSubmitDto orderSubmitDto);

    @PostMapping("/useFxMoney")
    Map<String, Object> useFxMoney(UseFxMoenyDto useFxMoenyDto);

    @PostMapping("/verifyCode")
    Map<String, Object> verifyCode(VerifyCodeDto verifyCodeDto);

    @PostMapping("/fxOrderRefund")
    Map<String, Object> fxOrderRefund(VerifyCodeDto verifyCodeDto);

    @PostMapping("/otherOrderRefund")
    Map<String, Object> otherOrderRefund(RefundDto refundDto);

    @PostMapping("/cancelOrder")
    Map<String, Object> cancelOrder(CancelOrderDto cancelOrderDto);

    @GetMapping("/test")
    void test();
}
